home *** CD-ROM | disk | FTP | other *** search
/ Greatest Childrens Stories Ever Told / Greatest_Stories.iso / demos / funtown / demo.dir / 00052_Script_Scripts 9 < prev    next >
Text File  |  1994-11-08  |  1KB  |  49 lines

  1. --òòò Scripts 7
  2. --ùùùùùùùùùùùùùùùùùùùùùùùùùùùùùù
  3. on activateChalkboard whichFrame, whichTextPict, whichMode
  4.   if the number of cast ( whichTextPict & whichMode )=-1 then
  5.     put "Hey! "& ( whichTextPict & whichMode ) &" is not a cast member."
  6.     exit
  7.   end if
  8.   global CU
  9.   if CU then exit
  10.   puppetTransition 50,0,64
  11.   go the frame 
  12.   if whichTextPict<>"" then
  13.     activate 43,the number of cast ( whichTextPict & whichMode ),1,8,190,310,"","",""
  14.     if not ( whichMode contains "òLearnò" ) then updateStage
  15.     doSound ( whichTextPict )
  16.   end if
  17.   updateStage
  18. end
  19. --ùùùùùùùùùùùùùùùùùùùùùùùùùùùùùù
  20. on weHaveAWinner
  21.   global PAB, CU
  22.   set CU = true
  23.   set PAB = 1
  24.   doWindow
  25. end 
  26. -- ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡
  27. on ResetQuest
  28.   global NQ, QL, WQ, CV, NS, mode
  29.   cursor 4
  30.   setGlobalVariables
  31.   set the locH of Sprite 2 = -500
  32.   go "pos0"
  33.   when keyDown then checkKeyEvent the key, charToNum ( the key )
  34.   delete item 1 to 5 of QL
  35.   put QL
  36.   if the number of items of QL < 5 then randomizeQuestions 5
  37.   set WQ = 1
  38.   set NS = 0
  39.   set NQ = 5
  40.   CheckRandomOrder
  41.   repeat with x=2 to 31
  42.     set the locV of sprite x=1000
  43.   end repeat
  44.   deactivate "2"
  45.   reposition (CV)
  46.   unloadCast
  47.   cursor -1
  48. end
  49.